import vueRouter from "vue-router";
import HomeContainer from "./comvue/tabbar/HomeContainer.vue";
import MemberContainer from "./comvue/tabbar/MemberContainer.vue";
import ShopcarContainer from "./comvue/tabbar/ShopcarContainer.vue";
import SearchContainer from "./comvue/tabbar/SearchContainer.vue";
import NewsList from "./comvue/news/NewsList.vue";
import NewsDetials from "./comvue/news/NewsDetials.vue";
import ShareImg from "./comvue/imgs/ShareImg.vue";
//实列router
let router = new vueRouter({
    routes:[
        {path:"/",redirect:"/home"},
        {path:"/home",component:HomeContainer},
        {path:"/member",component:MemberContainer},
        {path:"/shopcar",component:ShopcarContainer},
        {path:"/search",component:SearchContainer},
        {path:"/home/newslist",component:NewsList},
        {path:"/home/newsdetials/:id",component:NewsDetials},
        {path:"/home/shareimg",component:ShareImg}
    ],
    linkActiveClass:"mui-active"//点击路由高亮
});

module.exports = router;